CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/pages/auth/password-reset/[id].tsx
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2021 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
// Password reset page
7
8
import { Layout } from "antd";
9
import RedeemPasswordReset from "components/auth/redeem-password-reset";
10
import Footer from "components/landing/footer";
11
import Head from "components/landing/head";
12
import Header from "components/landing/header";
13
import { Customize } from "lib/customize";
14
import withCustomize from "lib/with-customize";
15
16
export default function PasswordReset({ passwordResetId, customize }) {
17
return (
18
<Customize value={customize}>
19
<Head title={"Password Reset"} />
20
<Layout>
21
<Header page="sign-in" />
22
<Layout.Content style={{ backgroundColor: "white" }}>
23
<RedeemPasswordReset passwordResetId={passwordResetId} />
24
<Footer />
25
</Layout.Content>
26
</Layout>
27
</Customize>
28
);
29
}
30
31
export async function getServerSideProps(context) {
32
const { id } = context.params;
33
return await withCustomize({
34
context,
35
props: { passwordResetId: id },
36
});
37
}
38
39